package com.education.service.edu.feign;

import com.education.result.R;
import com.education.service.edu.feign.fallback.VodMediaServiceFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * 远程调用批量删除视频
 * Created by Lance on 2020/07/01 14:37
 */
@Service                          // 指定容错类 VodMediaServiceFallBack
@FeignClient(value = "online-education-service-vod", fallback = VodMediaServiceFallBack.class)
public interface VodMediaService {

    /**
     * 远程调用批量删除课程视频
     * @param videoIdList
     * @return
     */
    @DeleteMapping("/admin/vod/media/remove")
    R removeVideoByIdList(@RequestBody List<String> videoIdList);
}
